<% if ENV['GCLOUD_IMAGE_SCANNER'] && @project.show_gcr_vulnerabilities && @build.docker_repo_digest %>
  <dt>Vulnerabilities</dt>
  <dd>
    <% url = SamsonGcloud::ImageScanner.result_url(@build) %>
    <%= link_to_if url, SamsonGcloud::ImageScanner.status(@build.gcr_vulnerabilities_status_id), url %>
    <%= additional_info "Images scan results are updated when deploying." %>
  </dd>
<% end %>
